package com.happy3w.cmds.install;

import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class LibConfig {
    private String jarFile;
    private String group;
    private String artifact;
    private String version;

    public String buildInstallCmd() {
        return String.format(
                "mvn install:install-file -Dfile=\"%s\" -DgroupId=%s -DartifactId=%s -Dversion=%s -Dpackaging=jar",
                jarFile, group, artifact, version);
    }
}
